<template>
  <div>
    <h1>意见反馈</h1>
    <div>
      <p>意见</p>
      <van-field
        v-model="message"
        rows="2"
        autosize
        label="留言"
        type="textarea"
        maxlength="50"
        placeholder="请输入留言"
        show-word-limit
      />

      <p>联系方式</p>
      <van-cell-group>
        <van-field v-model="value" label="文本" placeholder="请输入用户名" />
      </van-cell-group>
      <div>
        <button @click="up">提交</button>
      </div>
    </div>
  </div>
</template>

<script>
import {submitAction} from "@/axios/index"
export default {
  name: "submitAction",

  data() {
    return {
        message:'',
        value:''
    };
  },

  mounted() {},

  methods: {
    up(){
        submitAction({
            content:this.message,
            phone:this.value,
            name:localStorage.getItem("username"),
            openId:localStorage.getItem("openId")
        })
        alert("提交成功")
    }
  },
};
</script>

<style scoped>
</style>